package com.ror.java.se.thread;

public class Demo01 {
    public static void main(String[] args) {
        MyThread mt1 = new MyThread();
        mt1.start();
        MyThread mt2 = new MyThread();
        mt2.start();
    }

    private static class MyThread extends Thread {
        @Override
        public void run() {
            for (int i = 0; i < 50; i++) {
                System.out.println(this.getName() + ": " + "Hello, multithread!");
            }
        }
    }
}
